package gtkwire.listener.connector;

import gtkwire.*;
import gtkwire.widget.GtkWidget;
import gtkwire.listener.FilteringGTKMessageListener;
import gtkwire.listener.ValueChangeListener;

public class ValueChangeListenerFilter extends FilteringGTKMessageListener
{
	public ValueChangeListenerFilter( ValueChangeListener l )
	{
		super( l );
		addFilteringWidgetType( GtkWidget.WT_GtkSpinButton );
		addFilteringWidgetType( GtkWidget.WT_GtkHScale );
		addFilteringSignal( GTKWireSignal.VALUE_CHANGED );
		setMatchMode( this.MUST_MATCH_ALL );
	}
	
	public void filteredMessage( GTKWireMessage msg )
	{
		((ValueChangeListener)listener).valueChanged( msg );
	}

}//end class